package com.visionarysoftwaresolutions
/**
 * Vision -- corresponds to projects I'm currently working on
*/
class Vision {
    String name
    String purpose
    Date dateCreated
    Date lastUpdated

    static hasMany = [
                      posts:BlogPost,
                      videos:Video,
                      realizations:Realization,
                      risks:Risk
                     ]
    static constraints = {
        name(blank:false, unique:true)
        purpose(blank:false, maxSize:2000)
        posts()
        videos()
        realizations()
        risks()
    }
}
